<?php
require_once("control_seguridad.php");
require_once("../model/class_expediente.php");

isset($_POST['P01']) ? $P01 = trim( $_POST['P01']) : $P01 = '';
isset($_POST['P02']) ? $P02 = trim( $_POST['P02']) : $P02 = 1;
isset($_POST['P03']) ? $P03 = trim( $_POST['P03']) : $P03 = '';
isset($_POST['P04']) ? $P04 = trim( $_POST['P04']) : $P04 = '';
isset($_POST['P05']) ? $P05 = trim( $_POST['P05']) : $P05 = '';

echo expediente::nuevoExpediente( array( $P01, $P02, $P03, $P04, $P05));
?>